.spaceCard {
  width: 100%;
  height: 280px;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #d3dbf8;

  &.personal {
    width: 460px;
    border: none !important;
  }

  &.team {
    width: 440px;
  }

  :global {
    .ant-card-body {
      display: flex;
      flex-direction: column;
      height: 100%;
      padding: 20px !important;
    }
  }

  .cardHeader {
    display: flex;
    justify-content: center;
    margin: 9px 0 12px;

    .avatar {
      width: 72px;
      height: 72px;
      border-radius: 12px;
      overflow: hidden;
    }
  }

  .cardBody {
    flex: 1;
    text-align: center;
    margin-bottom: 20px;
    font-family: PingFang-Sim;

    .titleContainer {
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      align-items: center;
      gap: 8px;
      margin-bottom: 12px;

      .spaceTitle {
        font-size: 20px;
        font-weight: 500;
        line-height: 26px;
        letter-spacing: normal;
        color: #000000;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
    }

    .spaceDescription {
      font-size: 14px;
      font-weight: normal;
      line-height: 23px;
      text-align: center;
      letter-spacing: normal;
      color: #7f7f7f;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      width: 100%;
      display: block;
    }
  }

  .cardFooter {
    .spaceInfo {
      display: flex;
      justify-content: center;
      align-items: center;
      margin-bottom: 12px;
      font-size: 12px;
      color: #999;

      .authorInfo,
      .memberInfo {
        display: flex;
        align-items: center;
        gap: 4px;

        .icon {
          width: 20px;
          height: 20px;
        }

        .author,
        .memberCount {
          font-size: 12px;
          color: #7f7f7f;
          font-family: PingFang-Sim;
          font-size: 12px;
        }

        .author {
          max-width: 80px;
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
          font-weight: 500;
        }
      }

      .memberInfo .icon {
        width: 15px;
        height: 15px;
      }

      .divider {
        height: 14px;
        width: 1px;
        margin: 0 12px;
        background-color: #d8d8d8;
      }
    }

    .manageBtnContainer {
      height: 36px;
      display: flex;
      gap: 8px;
      opacity: 0;
    }
  }

  &:hover {
    .manageBtnContainer {
      opacity: 1;
    }
  }
}
